package com.luguangtao.web;

import com.luguangtao.entity.TestUser;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者: LCG
 * 日期: 2019/12/12 15:44
 * 描述:
 */
@RestController
@Api(description = "这是一个测试的接口类，里边有很多的方法",tags = "TestController02接口类")
@RequestMapping("nihao")
public class TestController02 {

    @RequestMapping(value = "getTestUser02",method = RequestMethod.POST)
    @ApiResponses({
            @ApiResponse(code = 200,message = "正常请求通过"),
            @ApiResponse(code = 404,message = "资源不存在")
    })
    @ApiOperation(value = "获取用户信息")
    public TestUser getTestUser(@ApiParam(name = "testUser",required = true,value = "用户实体参数") @RequestBody TestUser testUser){

        return testUser;
    }

}
